// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_atom;

import android.text.TextUtils;
import com.nnee.p_f.cls_b;
import java.util.Iterator;
import java.util.LinkedList;

public class cls_l extends cls_b
{

    public cls_l()
    {
        super("pris:exif");
    }

    private void e(cls_b b1)
    {
        if(j == null)
            j = new LinkedList();
        j.add(b1);
    }

    public cls_b a(String s, String s1)
    {
        cls_b b1 = new cls_b(s);
        if(!TextUtils.isEmpty(s)) goto _L2; else goto _L1
_L1:
        if(s1 != null)
            b1.g(s1);
        return d(b1);
_L2:
        switch(s.charAt(0))
        {
        case 105: // 'i'
            if(s.equals("info"))
                e(b1);
            break;

        case 116: // 't'
            if(s.equals("title"))
                c = b1;
            break;

        case 115: // 's'
            if(s.equals("subtitle"))
                d = b1;
            break;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    public boolean a()
    {
        boolean flag;
        if(c != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public boolean b()
    {
        boolean flag;
        if(d != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public String c()
    {
        String s;
        if(a())
            s = c.A();
        else
            s = null;
        return s;
    }

    public String d()
    {
        String s;
        if(b())
            s = d.A();
        else
            s = null;
        return s;
    }

    public String e()
    {
        StringBuilder stringbuilder = new StringBuilder();
        if(a() && !TextUtils.isEmpty(c()))
        {
            stringbuilder.append(c());
            stringbuilder.append("\n");
        }
        if(b() && !TextUtils.isEmpty(d()))
        {
            stringbuilder.append(d());
            stringbuilder.append("\n");
        }
        if(j != null)
        {
            for(Iterator iterator = j.iterator(); iterator.hasNext(); stringbuilder.append("\n"))
            {
                cls_b b1 = (cls_b)iterator.next();
                String s = b1.a("key");
                if(!TextUtils.isEmpty(s))
                    stringbuilder.append(s);
                String s1 = b1.a("value");
                if(!TextUtils.isEmpty(s1))
                {
                    stringbuilder.append(" : ");
                    stringbuilder.append(s1);
                }
            }

        }
        if(stringbuilder.length() > 1)
            stringbuilder.deleteCharAt(-1 + stringbuilder.length());
        return stringbuilder.toString();
    }

    public static final String a = "key";
    public static final String b = "value";
    b c;
    b d;
    LinkedList j;
}
